﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="CoolCode.Web.UI.Views.Home.Login"
    Theme="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户登录</title> 

    <script src="../../Content/js/Common.js" type="text/javascript"></script>

    <script type="text/javascript">
        setToTop(); 
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="centerDiv" style="width: 300px; margin-top: 100px;">
        <div class="generalDialog">
            <!--Title -->
            <div class="HeaderTitle">
                <asp:Label ID="lblSystem" runat="server" Text="用户登录"></asp:Label>
            </div>
            <!--Subhead -->
            <div class="Subhead" style="  padding: 10px 6px 10px 6px; font-size: 16px;">
                <asp:Label ID="lblSubHead" runat="server"></asp:Label>
            </div>
            <!--Content -->
            <div> 
                <asp:Login ID="login" runat="server">
                    <LayoutTemplate>
                        <table border="0" cellspacing="5" width="100%"> 
                            <tr>
                                <td align="right" style="width: 80px;">
                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">用户名:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="UserName" runat="server" CssClass="FlatTextBox" Width="150px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                        ErrorMessage="不能为空" ValidationGroup="login">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">密码:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Password" runat="server" CssClass="FlatTextBox" TextMode="Password"
                                        Width="150px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                        ErrorMessage="不能为空" ValidationGroup="login">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2">
                                    <asp:CheckBox ID="RememberMe" runat="server" Text="保存密码" />
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2" style="color: Red;">
                                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="3">
                                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="登  录" CssClass="button"
                                        ValidationGroup="login" />
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="3">
                                    <ul>
                                        <li><a href="Regedit.aspx">立即注册</a></li>
                                        <li><a href="RecoverPassword.aspx">忘记密码</a></li>
                                    </ul>
                                </td>
                            </tr>
                        </table>
                    </LayoutTemplate>
                   
                </asp:Login>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
